﻿using System;


namespace TopBuilds.Restaurant.Data
{
    public class Printer
    {
        #region 属性
        private int _id;
        private string _name;
        private int _pageWidth;
        private int _topMargin;
        private int _bottomMargin;
        private int _leftMargin;
        private int _rightMargin;
        #endregion

        #region 构造
        public Printer()
        {
            _name          = null;
            _pageWidth     = 0;
            _topMargin     = 0;
            _bottomMargin  = 0;
            _leftMargin    = 0;
            _rightMargin   = 0;
        }

        public Printer(string name)
        {
            _name          = name;
            _pageWidth     = 0;
            _topMargin     = 0;
            _bottomMargin  = 0;
            _leftMargin    = 0;
            _rightMargin   = 0;
        }

        public Printer(string name, int pageWidth)
        {
            _name          = name;
            _pageWidth     = pageWidth;
            _topMargin     = 0;
            _bottomMargin  = 0;
            _leftMargin    = 0;
            _rightMargin   = 0;
        }

        public Printer(string name, int pageWidth, int topMargin)
        {
            _name          = name;
            _pageWidth     = pageWidth;
            _topMargin     = topMargin;
            _bottomMargin  = 0;
            _leftMargin    = 0;
            _rightMargin   = 0;
        }

        public Printer(string name, int pageWidth, int topMargin, int bottomMargin)
        {
            _name          = name;
            _pageWidth     = pageWidth;
            _topMargin     = topMargin;
            _bottomMargin  = bottomMargin;
            _leftMargin    = 0;
            _rightMargin   = 0;
        }

        public Printer(string name, int pageWidth, int topMargin, int bottomMargin, int leftMargin)
        {
            _name          = name;
            _pageWidth     = pageWidth;
            _topMargin     = topMargin;
            _bottomMargin  = bottomMargin;
            _leftMargin    = leftMargin;
            _rightMargin   = 0;
        }

        public Printer(string name, int pageWidth, int topMargin, int bottomMargin, int leftMargin, int rightMargin)
        {
            _name          = name;
            _pageWidth     = pageWidth;
            _topMargin     = topMargin;
            _bottomMargin  = bottomMargin;
            _leftMargin    = leftMargin;
            _rightMargin   = rightMargin;
        }
        #endregion

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public int PageWidth
        {
            get { return _pageWidth; }
            set { _pageWidth = value; }
        }

        public int TopMargin
        {
            get { return _topMargin; }
            set { _topMargin = value; }
        }

        public int bottomMargin
        {
            get { return _bottomMargin; }
            set { _bottomMargin = value; }
        }

        public int LeftMargin
        {
            get { return _leftMargin; }
            set { _leftMargin = value; }
        }

        public int RightMargin
        {
            get { return _rightMargin; }
            set { _rightMargin = value; }
        }
        public override string ToString()
        {
            return Name;
        }
    }
}
